@import './base.css';

/* 全局深色主题样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-weight: normal;
}

/* Element Plus 深色主题覆盖 */
.el-select {
  --el-select-border-color-hover: rgba(255, 255, 255, 0.3);
  --el-select-input-focus-border-color: #4CAF50;
}

.el-select .el-input__wrapper {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.el-select .el-input__wrapper:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.el-select .el-input__wrapper.is-focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2);
}

.el-input__inner {
  color: #ffffff !important;
  background: transparent !important;
}

.el-input__inner::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.el-button--primary {
  background: linear-gradient(135deg, #4CAF50, #45a049) !important;
  border: none !important;
  border-radius: 6px !important;
}

.el-button--primary:hover {
  background: linear-gradient(135deg, #45a049, #4CAF50) !important;
  transform: translateY(-1px);
}

.el-button--primary:active {
  transform: translateY(0);
}

.el-slider__runway {
  background: rgba(255, 255, 255, 0.2) !important;
}

.el-slider__bar {
  background: #4CAF50 !important;
}

.el-slider__button {
  border-color: #4CAF50 !important;
  background: #4CAF50 !important;
}

.el-slider__button:hover {
  transform: scale(1.2);
}

/* 下拉菜单样式 */
.el-select-dropdown {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.el-select-dropdown .el-select-dropdown__item {
  color: #ffffff !important;
}

.el-select-dropdown .el-select-dropdown__item:hover {
  background: rgba(76, 175, 80, 0.2) !important;
}

.el-select-dropdown .el-select-dropdown__item.selected {
  background: #4CAF50 !important;
  color: #ffffff !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  body {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}
